package com.yun.zf.common.app.dto.center;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MyCouponListDto {
    @ApiModelProperty(value = "我的优惠券Id")
    private String id;
    @ApiModelProperty(value = "优惠状态1有效2已使用3已过期")
    private Integer userStatus;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rstartTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rendTime;
    @ApiModelProperty(value = "满多少使用，如果为-1，页面不显示")
    private BigDecimal withAmount;

    @ApiModelProperty(value = "优惠券金额")
    private BigDecimal usedAmount;
    @ApiModelProperty(value = "折扣比列")
    private BigDecimal discount;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "副标题")
    private String subtitle;

    @ApiModelProperty(value = "优惠类型1新人券、2满减券、3折扣券、4邀请券")
    private Integer type;
    @ApiModelProperty(value = "描述")
    private String description;

}
